<?php

namespace App\Http\Controllers\Wechat;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class CustomerController extends Controller
{
    function __construct()
    {
        view()->share([
            '_customer' => 'on'
        ]);
    }

    /***
     * 会员中心
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function index()
    {
        $headimgurl = session('wechat.customer.headimgurl');
        return view('wechat.customer.index', compact('headimgurl'));
    }
}
